﻿@page "/"
@using System.ComponentModel
@using AntBlazorTableSample.WebApp.Components

<PageTitle>Home</PageTitle>

<ServicedTable TItem="Customer" HttpClientName="default" ServiceEndpoint="api/customers"></ServicedTable>

@code
{
    // ReSharper disable once ClassNeverInstantiated.Local
    record Customer
    {
        public string? Id { get; set; }

        [DisplayName("First name")]
        public string? FirstName { get; set; }

        [DisplayName("Last name")]
        public string? LastName { get; set; } 
        
        public string? Company { get; set; }

        [DisplayName("Phone number")]
        public string? Phone { get; set; } 

        [DisplayName("Email address")]
        public string? Email { get; set; } 

        [DisplayName("Subscription date")]
        public DateTime SubscriptionDate { get; set; }
    }
}
